<?php
error_reporting(E_ALL);

include "inc/database.inc.php";
include "inc/general.inc.php";
include "inc/config.inc.php";
include "inc/home.inc.php";
include "inc/admin.inc.php";

databaseConnect ();
displayHeader();
// Show navigation etc...

switch (getCurrentAction()){
	case "login":
		showLogin();
	break;
	
	case "adminpanel":
		showAdminpanel();
	break;
	
	case "confirm":
		confirmAdminpanel();
	break;
	
	case "logoff":
		logoff();
	break;
	
	default: 
		showLogin();
	break;
}
?>